package com.healthyeating.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthyeating.common.annotation.Excel;
import com.healthyeating.common.core.domain.BaseEntity;

/**
 * 发现分享对象 tb_share
 * 
 * @author 段奇乐
 * @date 2025-03-22
 */
public class Share extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新的分享id，主键递增 */
    private Long shareId;

    /** 心得分享标题 */
    @Excel(name = "心得分享标题")
    private String shareTitle;

    /** 心得分享内容 */
    @Excel(name = "心得分享内容")
    private String shareContent;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private Long userId;

    /** IP */
    @Excel(name = "IP")
    private String createAddr;

    /** 更新用户 */
    private Long updateUser;

    /** 图片文件 */
    @Excel(name = "图片文件")
    private String shareFile;

    /** 点赞数 */
    private Integer thumbNum;

    public void setShareId(Long shareId) 
    {
        this.shareId = shareId;
    }

    public Long getShareId() 
    {
        return shareId;
    }
    public void setShareTitle(String shareTitle) 
    {
        this.shareTitle = shareTitle;
    }

    public String getShareTitle() 
    {
        return shareTitle;
    }
    public void setShareContent(String shareContent) 
    {
        this.shareContent = shareContent;
    }

    public String getShareContent() 
    {
        return shareContent;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCreateAddr(String createAddr) 
    {
        this.createAddr = createAddr;
    }

    public String getCreateAddr() 
    {
        return createAddr;
    }
    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }
    public void setShareFile(String shareFile) 
    {
        this.shareFile = shareFile;
    }

    public String getShareFile() 
    {
        return shareFile;
    }

    public Integer getThumbNum() {
        return thumbNum;
    }

    public void setThumbNum(Integer thumbNum) {
        this.thumbNum = thumbNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("shareId", getShareId())
            .append("shareTitle", getShareTitle())
            .append("shareContent", getShareContent())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("createAddr", getCreateAddr())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .append("shareFile", getShareFile())
            .append("thumbNum", getThumbNum())
            .toString();
    }
}
